type Group = {
  id: number,
  userId: number,
  folderId: number,
  count: number,
  icon: string,
  gname: string,
  descr: string,
  createTime: string,
  updateTime: string
}

type Folder = {
  id: number,
  userId: number,
  fname: string,
  descr: string,
  createTime: string,
  updateTime: string,
  groups: Group[]
}

type Todo = {
  id: number,
  groupId: number,
  done: number,
  star: number,
  content: string,
  note: string,
  createTime: string,
  updateTime: string,
  scheduledTime: string
}

type UserInfo = {
  nikeName: '',
  realName: '',
  phone: '',
  country: '',
  national: '',
  address: '',
  hobby: '',
  job: '',
  signature: '',
  profile: '',
  defaultGroup: '',
  birthday: '',
  gender: ''
}

type ApiResponse = {
  code: number,
  msg: string,
  data: any
}

type MessageType = 'success' | 'warning' | 'info' | 'error'

type MessageBoxType = 'alert' | 'confirm'

export type {
  Folder,
  Todo,
  UserInfo,
  ApiResponse,
  Group,
  MessageType,
  MessageBoxType
}
